package com.bjpowernode.mvc.service.inter;

import com.bjpowernode.db.domain.HeaderImage;
import com.bjpowernode.mvc.model.dto.user.HeaderImageDTO;
import com.bjpowernode.mvc.model.dto.user.SaveHeaderImageDTO;

public interface HeaderImageService {

    //查看用户的头像
    HeaderImage queryUserId(Integer userId);



    //删除头像文件.
    boolean removeHeaderFromDFS(String groupName, String fileId);




    //从数据库删除
    boolean deleteDB(Integer userId);



    //上传文件.
    SaveHeaderImageDTO saveFileFastDFS(HeaderImageDTO headerImageDTO);

    //把文件信息和fastdto返回的结果存入数据库
    boolean addHeaderImage(HeaderImageDTO headerImageDTO);
}
